<%@ Page Title="" Language="C#" MasterPageFile="~/car-insurance/proposalforms/CarInsuranceProposalMasterPage.master"
    AutoEventWireup="true" Async="true" CodeFile="etiqa_proposal_form.aspx.cs" Inherits="car_Insurance_new_proposalforms_etiqa_proposal_form" %>

<%@ Register Src="~/controls/usrNoJS.ascx" TagName="usrNoJS" TagPrefix="ucNoJS" %>
<%@ Register Src="~/controls/usrPhoneNo.ascx" TagName="usrPhoneNo" TagPrefix="uc1" %>
<%@ Register Src="~/controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc2" %>
<%@ Register Src="~/controls/usrIdNumber.ascx" TagName="usrIdNumber" TagPrefix="uc3" %>
<%@ Register Src="~/controls/usrNationality.ascx" TagName="usrNationality" TagPrefix="uc4" %>
<%@ Register Src="~/controls/usrCompanyLogoByServices.ascx" TagName="usrCompanyLogoByServices"
    TagPrefix="uc5" %>
<%@ Register Src="~/controls/usrGender.ascx" TagName="usrGender" TagPrefix="uc6" %>
<%@ Register Src="~/controls/usrIdType.ascx" TagName="usrIdType" TagPrefix="uc7" %>
<%@ Register Src="~/controls/usrSalutation.ascx" TagName="usrSalutation" TagPrefix="uc8" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script src="../../includes/LoadingProgress.js" type="text/javascript"></script>

    <div id="container">
        <div id="nav_top">
            <div class="left pad_8yr">
                <%-- <asp:ImageButton ID="imgbtnBackTop" runat="server" ImageUrl="/images/forms_proposal/button/back.png"
                    OnClick="imgbtnBackTop_Click" OnClientClick="return confirm('Are you sure to go back?');" />--%>
                <a href="/car-insurance/results.aspx" id="lnkBackTop" onclick="return confirm('Are you sure to go back?');">
                    <img src="/images/forms_proposal/button/back.png" alt="Back" /></a>
            </div>
            <div class="right pad_8yr">
                <img src="/images/forms_proposal/nav/logo_comparexpress.png" alt="CompareXpress" /></div>
        </div>
        <ucNoJS:usrNoJS ID="usrNoJS1" runat="server" />
        <div class="form_selection" style="display: none;">
            <h3>
                <asp:Label ID="lblProvider" runat="server"></asp:Label></h3>
            <asp:Label ID="lblPackageHead" runat="server" Text="WorkShop Plan : " CssClass="fs_lbl"></asp:Label>
            <asp:Label ID="lblPackage" runat="server" CssClass="fs_lbl_m"></asp:Label>
            <asp:Label ID="lblPremiumHead" runat="server" Text="Annual Premium : " CssClass="fs_lbl_r"></asp:Label>
            <asp:Label ID="lblPremium" runat="server"></asp:Label>
        </div>
        <div id="divLoading">
            <table style="width: 100%; height: 500px">
                <tr>
                    <td align="center" valign="middle">
                        <img src="../../images/loading7.gif" alt="Loading" align="middle" />
                        <span id="divMessage">Please wait...</span><span id="divPgrPercent">0%</span>
                    </td>
                </tr>
            </table>
        </div>
        <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server">
        </asp:ScriptManager>
        <div runat="server" id="divAgentRequest" visible="false">
            <asp:Label ID="lblAgentId" runat="server" />
            <asp:Label ID="lblCarId" runat="server" />
            <asp:Label ID="lblCustomerId" runat="server" />
            <asp:Label ID="lblCarResultId" runat="server" />
            <asp:Label ID="lblProviderCompanyId" runat="server" />
            <asp:Label ID="lblCarMoreDetailId" runat="server" />
            <asp:Label ID="lblCustomerGivenName" runat="server" />
            <asp:Label ID="lblCustomerMobileNo" runat="server" />
        </div>
        <div id="divContent" style="display: none;">
            <div id="contentBody">
                <div id="header">
                    <div class="seperator">
                    </div>
                    <div class="right" style="width: 240px">
                        <div class="quotesum_button">
                            <img src="/images/forms_proposal/button/quotesum.png" width="240" height="73" alt="Quote Summary" /></div>
                    </div>
                    <h1>
                        Online Car Insurance Proposal Form</h1>
                    <div id="divAgent" style="font-size: small; font-weight: bold" runat="server" visible="false">
                        <br />
                        Agent Name :
                        <asp:Label runat="server" ID="lblAgentName" />
                        <asp:HyperLink runat="server" onclick="return confirm('Are you confirm?');" ID="hplLogout"
                            Text="Sign Out" NavigateUrl="~/user/logout.aspx" />
                    </div>
                    <%--<uc5:usrCompanyLogoByServices LogoLimitCount="8" CompanyProviderTypeId="100" ID="usrCompanyLogoByServices1" runat="server" />--%>
                    <div class="seperator">
                    </div>
                    <div class="quotesum">
                        <div class="top">
                        </div>
                        <div id="divQuoteSummery" class="body pad_15x">
                            <!-- QUOTE SUMMARY | Start -->
                            <div class="w26per left pad_25xr">
                                <h1>
                                    Selected Insurer</h1>
                                <p>
                                    <asp:Label ID="lblSelectInsurer" runat="server"></asp:Label></p>
                                <h1>
                                    Workshop Plan</h1>
                                <p>
                                    <asp:Label ID="lblWorkshopPlan" runat="server"></asp:Label></p>
                                <h1>
                                    Car Make &amp; Model</h1>
                                <p>
                                    <asp:Label ID="lblCarMakemodel" runat="server"></asp:Label></p>
                            </div>
                            <div class="w21per left pad_25xr">
                                <h1>
                                    Year of Registration</h1>
                                <p>
                                    <asp:Label ID="lblYrofRegister" runat="server"></asp:Label></p>
                                <h1>
                                    Applicable/Renewal NCD</h1>
                                <p>
                                    <asp:Label ID="lblNCDRenewal" runat="server"></asp:Label></p>
                                <h1>
                                    Premium</h1>
                                <p>
                                    <asp:Label ID="lblPremiums" runat="server"></asp:Label></p>
                            </div>
                            <div class="w21per left pad_25xr">
                                <h1>
                                    Cover Commencement Date</h1>
                                <p>
                                    <asp:Label ID="lblCommencementdate" runat="server"></asp:Label></p>
                                <h1>
                                    Offpeak Vehicle?</h1>
                                <p>
                                    <asp:Label ID="lblOffpeakvehile" runat="server"></asp:Label></p>
                                <h1>
                                    Offence-Free Driving/COM</h1>
                                <p>
                                    <asp:Label ID="lblOffenceDriving" runat="server"></asp:Label></p>
                            </div>
                            <div class="w21per left pad_25xr">
                                <h1>
                                    &nbsp;</h1>
                                <p>
                                    &nbsp;</p>
                                <h1>
                                    Quote Reference Number</h1>
                                <p>
                                    <asp:Label ID="lblQRefNo" runat="server"></asp:Label></p>
                                <div id="divPromoVoucher" runat="server" visible="false">
                                    <p>
                                        <asp:Image ImageAlign="AbsMiddle" runat="server" ID="imgPromoAdd1" ToolTip="Free S$100 Petrol Voucher by CompareXpress"
                                            Height="45" Width="40" Visible="false" ImageUrl="~/images/promo/100-pv.gif" />
                                        <asp:Image ImageAlign="AbsMiddle" runat="server" ID="imgPromoAdd2" ToolTip="Free S$50 Petrol Voucher by CompareXpress"
                                            Height="45" Width="40" Visible="false" ImageUrl="~/images/promo/50-pv.gif" />
                                        By CompareXpress
                                    </p>
                                </div>
                                <div style="display: none;">
                                    <h1>
                                        Current/Existing NCD</h1>
                                    <p>
                                        <asp:Label ID="lblNCDvalue" runat="server"></asp:Label></p>
                                    <h1>
                                        Any Claims in the Last 3 Years?</h1>
                                    <p>
                                        <asp:Label ID="lblAnyclaim" runat="server"></asp:Label></p>
                                    <h1>
                                        Add Additional Name Driver</h1>
                                    <p>
                                        <asp:Label ID="lblAddDriver" runat="server"></asp:Label>
                                        <span style="display: none;">
                                            <asp:TextBox ID="txtDriverCount" runat="server" Text="0"></asp:TextBox>
                                        </span>
                                    </p>
                                    <h1>
                                        Year of Manufacture</h1>
                                    <p>
                                        <asp:Label ID="lblYrofManufacture" runat="server"></asp:Label></p>
                                </div>
                            </div>
                            <!-- QUOTE SUMMARY | End   -->
                        </div>
                        <div class="bottom">
                        </div>
                    </div>
                </div>
                <div class="seperator">
                </div>
                <div id="body">
                </div>
                <div id="divValidationSummary">
                    <asp:ValidationSummary ID="vsproposal" runat="server" CssClass="validation_div" ValidationGroup="proposal"
                        HeaderText="Please complete the form" />
                </div>
                <div class="form">
                    <div class="top">
                        <div class="left">
                            <div class="pad_10t pad_35xl white">
                                Online Car Insurance Proposal Form</div>
                        </div>
                        <div class="right">
                        </div>
                    </div>
                    <div class="body">
                        <div class="inner">
                            <div class="pad_20x10y">
                                <div class="norm">
                                    <div class="top_t">
                                    </div>
                                    <div class="body">
                                        <div class="pad_15x">
                                            <h1>
                                                Important Disclaimer</h1>
                                            <p>
                                                <asp:Label runat="server" Text="" ID="lblDisclaimer"></asp:Label></p>
                                        </div>
                                    </div>
                                    <div class="bottom">
                                    </div>
                                </div>
                                <div class="seperator">
                                </div>
                                <div class="hilite">
                                    <div class="top">
                                    </div>
                                    <div class="body_in pad_15x">
                                        <h1>
                                            Proposer's Particulars</h1>
                                        <div class="seperator">
                                        </div>
                                        <div class="w43per left">
                                            <div id="divName">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Name:</div>
                                                <div class="left">
                                                    <asp:TextBox ID="txtName" MaxLength="80" runat="server" size="25"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="rfvName" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="revName" runat="server" ControlToValidate="txtName"
                                                        ValidationExpression="^[a-zA-Z''-'\s]{1,80}$" ValidationGroup="proposal" CssClass="validationErrorControl"
                                                        Text="" ErrorMessage=""></asp:RegularExpressionValidator>
                                                    <asp:RequiredFieldValidator ID="rfvNameSave" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="revNameSave" runat="server" ControlToValidate="txtName"
                                                        ValidationExpression="^[a-zA-Z''-'\s]{1,80}$" ValidationGroup="tempsaveproposal"
                                                        CssClass="validationErrorControl" Text="" ErrorMessage=""></asp:RegularExpressionValidator>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divContactNo">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Contact Number:</div>
                                                <div class="left">
                                                    <uc1:usrPhoneNo ID="txtContactNo" IsEnabled="true" IsRequired="true" PhoneNoRequireErrorMessage="Require mobile number."
                                                        PhoneNoErrorMessage="Mobile phone number should 8 digits." PhoneNoValidErrorMessage="Invalid mobile phone number."
                                                        runat="server" ValidationGroup="proposal" />
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divNRICNo">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> NRIC Number:</div>
                                                <div class="left">
                                                    <uc3:usrIdNumber ID="ddlIdNumber" runat="server" ValidationGroup="proposal" />
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divNationality">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Nationality:</div>
                                                <div class="left">
                                                    <uc4:usrNationality ID="ddlNationality" runat="server" ErrorMessage="" ValidationGroup="proposal" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="w56per left">
                                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                <ContentTemplate>
                                                    <div id="divPostCode">
                                                        <div class="w180 left align_right pad_6t pad_7xr">
                                                            <span class="red">*</span> Postcode:
                                                        </div>
                                                        <!--onchange="PostCodeChange();requestByPostCode();" onblur="javascript:alert('clicked');document.getElementById('<btnPostCode.ClientID>').click();"-->
                                                        <asp:TextBox ID="txtPostCode" size="8" onblur="requestByPostCode();" onkeypress="restrictToNumbers(event)"
                                                            AutoPostBack="true" OnTextChanged="txtPostCode_TextChanged" runat="server" MaxLength="6"
                                                            Width="80px"></asp:TextBox>
                                                        <asp:ImageButton ID="ibtPostCode" runat="server" CssClass="button" align="middle"
                                                            OnClick="ibtPostCode_Click" Width="108" ValidationGroup="PostCode" AlternateText="Get Address"
                                                            ImageUrl="~/images/forms_proposal/button/getaddress.png" />
                                                        <%--<input type="image" align="middle" width="108" alt="Get Address" src="/images/forms_proposal/button/getaddress.png"
                                                            onclick="this.focus();return false;" class="button" />--%>
                                                        <asp:UpdateProgress runat="server" ID="uplUpProgress" DisplayAfter="500">
                                                            <ProgressTemplate>
                                                                <span style="position: absolute; text-align: right; width: 390px;">
                                                                    <img src="../../images/loading7.gif" id="ldPostCode" alt="loading" />
                                                                </span>
                                                            </ProgressTemplate>
                                                        </asp:UpdateProgress>
                                                        <asp:RequiredFieldValidator ID="rfvPCode" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="" ValidationGroup="PostCode" ControlToValidate="txtPostCode"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revPCode" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="" ValidationGroup="PostCode" ValidationExpression="[0-9]{6}"
                                                            ControlToValidate="txtPostCode"></asp:RegularExpressionValidator>
                                                        <asp:RequiredFieldValidator ID="rfvPostCode" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtPostCode"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revPostCode" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="" ValidationGroup="proposal" ValidationExpression="[0-9]{6}"
                                                            ControlToValidate="txtPostCode"></asp:RegularExpressionValidator>
                                                    </div>
                                                    <div runat="server" visible="false" id="divAddressList">
                                                        <div class="h10">
                                                        </div>
                                                        <div class="w180 left align_right pad_6t pad_7xr">
                                                            Please choose your address
                                                        </div>
                                                        <asp:DropDownList ID="ddlAddressList" Width="320px" runat="server" AutoPostBack="true"
                                                            OnSelectedIndexChanged="ddlAddressList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                            <div class="h10">
                                            </div>
                                            <div id="divUnitNo">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Unit Number:
                                                </div>
                                                <asp:TextBox ID="txtUnit1" MaxLength="10" runat="server" size="8"></asp:TextBox>-
                                                <asp:RequiredFieldValidator ID="rfvUnit1" runat="server" CssClass="validationErrorControl"
                                                    ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtUnit1"></asp:RequiredFieldValidator>
                                                <asp:RequiredFieldValidator ID="rfvUnit1Save" runat="server" CssClass="validationErrorControl"
                                                    ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtUnit1"></asp:RequiredFieldValidator>
                                                <asp:TextBox ID="txtUnit2" MaxLength="10" runat="server" size="8"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvUnit2" runat="server" CssClass="validationErrorControl"
                                                    ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtUnit2"></asp:RequiredFieldValidator>
                                                <asp:RequiredFieldValidator ID="rfvUnit2Save" runat="server" CssClass="validationErrorControl"
                                                    ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtUnit2"></asp:RequiredFieldValidator>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                <ContentTemplate>
                                                    <div id="divPCAddress">
                                                        <div class="w180 left align_right pad_6t pad_7xr">
                                                            <span class="red">*</span> Address:
                                                        </div>
                                                        <span id="divAddress"></span>
                                                        <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" MaxLength="120"
                                                            Width="200px"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvAddress" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtAddress"></asp:RequiredFieldValidator>
                                                        <asp:RequiredFieldValidator ID="rfvAddressSave" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtAddress"></asp:RequiredFieldValidator>
                                                    </div>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                            <div class="h10">
                                            </div>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="bottom">
                                    </div>
                                </div>
                                <div class="seperator">
                                </div>

                                <script type="text/javascript">
                                    IncreaseProgress(35);
                                </script>

                                <asp:Panel ID="pnlDriverDetails" runat="server" Width="100%">
                                    <div class="hilite">
                                        <div class="top">
                                        </div>
                                        <div class="body_in pad_15x">
                                            <div id="divDrivers">
                                                <h1>
                                                    Driver Details</h1>
                                            </div>
                                            <asp:Panel ID="pnlDriver1" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo1" runat="server" Text="Driver No: 1"></asp:Label><asp:Label
                                                            ID="lblDriverId1" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Driver DOB/Gender:</div>
                                                            <div class="left pad_6t">
                                                                <asp:Label ID="lblDriverDOB1" runat="server"></asp:Label>&nbsp;&nbsp;
                                                                <asp:Label ID="lblDriverGender1" runat="server"></asp:Label>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Salutation:</div>
                                                            <div class="left">
                                                                <uc8:usrSalutation ID="ddlDriverSalutation1" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                            <div style="display: none;">
                                                                <uc6:usrGender ID="ddlDriverGender1" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div style="display: none">
                                                            <asp:TextBox ID="txtDriverSalGenderValid1" Text="Valid" runat="server"></asp:TextBox>
                                                            <asp:CustomValidator CssClass="validationErrorControl" ControlToValidate="txtDriverSalGenderValid1"
                                                                ValidationGroup="proposal" ID="csvDriverSalGender1" ClientValidationFunction="CheckDriverSalGenderValid1"
                                                                OnServerValidate="CheckDriverSalGenderValid1" runat="server" ErrorMessage="Salutation and gender do not match."
                                                                Text=""></asp:CustomValidator>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Surname:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName1" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName1"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName1"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Given Name:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName1" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Type:</div>
                                                            <div class="left">
                                                                <uc7:usrIdType ID="ddlDriverIdType1" runat="server" ValidationGroup="proposal"></uc7:usrIdType>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Number:</div>
                                                            <div class="left">
                                                                <uc3:usrIdNumber ID="ddlDriverIdNumber1" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlDriver2" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo2" runat="server" Text="Driver No: 2"></asp:Label><asp:Label
                                                            ID="lblDriverId2" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Driver DOB/Gender:</div>
                                                            <div class="left pad_6t">
                                                                <asp:Label ID="lblDriverDOB2" runat="server"></asp:Label>&nbsp;&nbsp;
                                                                <asp:Label ID="lblDriverGender2" runat="server"></asp:Label>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Salutation:</div>
                                                            <div class="left">
                                                                <uc8:usrSalutation ID="ddlDriverSalutation2" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                            <div style="display: none;">
                                                                <uc6:usrGender ID="ddlDriverGender2" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div style="display: none">
                                                            <asp:TextBox ID="txtDriverSalGenderValid2" Text="Valid" runat="server"></asp:TextBox><asp:CustomValidator
                                                                CssClass="validationErrorControl" ControlToValidate="txtDriverSalGenderValid2"
                                                                ValidationGroup="proposal" ID="csvDriverSalGender2" ClientValidationFunction="CheckDriverSalGenderValid2"
                                                                OnServerValidate="CheckDriverSalGenderValid2" runat="server" ErrorMessage="Salutation and gender do not match."
                                                                Text=""></asp:CustomValidator>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Surname:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName2" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName2"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName2"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Given Name:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName2" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Type:</div>
                                                            <div class="left">
                                                                <uc7:usrIdType ID="ddlDriverIdType2" runat="server" ValidationGroup="proposal"></uc7:usrIdType>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Number:</div>
                                                            <div class="left">
                                                                <uc3:usrIdNumber ID="ddlDriverIdNumber2" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlDriver3" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo3" runat="server" Text="Driver No: 3"></asp:Label><asp:Label
                                                            ID="lblDriverId3" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Driver DOB/Gender:</div>
                                                            <div class="left pad_6t">
                                                                <asp:Label ID="lblDriverDOB3" runat="server"></asp:Label>&nbsp;&nbsp;
                                                                <asp:Label ID="lblDriverGender3" runat="server"></asp:Label>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Salutation:</div>
                                                            <div class="left">
                                                                <uc8:usrSalutation ID="ddlDriverSalutation3" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                            <div style="display: none;">
                                                                <uc6:usrGender ID="ddlDriverGender3" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div style="display: none">
                                                            <asp:TextBox ID="txtDriverSalGenderValid3" Text="Valid" runat="server"></asp:TextBox>
                                                            <asp:CustomValidator CssClass="validationErrorControl" ControlToValidate="txtDriverSalGenderValid3"
                                                                ValidationGroup="proposal" ID="csvDriverSalGender3" ClientValidationFunction="CheckDriverSalGenderValid3"
                                                                OnServerValidate="CheckDriverSalGenderValid3" runat="server" ErrorMessage="Salutation and gender do not match."
                                                                Text=""></asp:CustomValidator>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Surname:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName3" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName3"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName3"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Given Name:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName3" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Type:</div>
                                                            <div class="left">
                                                                <uc7:usrIdType ID="ddlDriverIdType3" runat="server" ValidationGroup="proposal"></uc7:usrIdType>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Number:</div>
                                                            <div class="left">
                                                                <uc3:usrIdNumber ID="ddlDriverIdNumber3" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlDriver4" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo4" runat="server" Text="Driver No: 4"></asp:Label><asp:Label
                                                            ID="lblDriverId4" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Driver DOB/Gender:</div>
                                                            <div class="left pad_6t">
                                                                <asp:Label ID="lblDriverDOB4" runat="server"></asp:Label>&nbsp;&nbsp;
                                                                <asp:Label ID="lblDriverGender4" runat="server"></asp:Label>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Salutation:</div>
                                                            <div class="left">
                                                                <uc8:usrSalutation ID="ddlDriverSalutation4" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                            <div style="display: none;">
                                                                <uc6:usrGender ID="ddlDriverGender4" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div style="display: none">
                                                            <asp:TextBox ID="txtDriverSalGenderValid4" Text="Valid" runat="server"></asp:TextBox><asp:CustomValidator
                                                                CssClass="validationErrorControl" ControlToValidate="txtDriverSalGenderValid4"
                                                                ValidationGroup="proposal" ID="csvDriverSalGender4" ClientValidationFunction="CheckDriverSalGenderValid4"
                                                                OnServerValidate="CheckDriverSalGenderValid4" runat="server" ErrorMessage="Salutation and gender do not match."
                                                                Text=""></asp:CustomValidator>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Surname:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName4" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName4"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName4"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Given Name:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName4" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Type:</div>
                                                            <div class="left">
                                                                <uc7:usrIdType ID="ddlDriverIdType4" runat="server" ValidationGroup="proposal"></uc7:usrIdType>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Number:</div>
                                                            <div class="left">
                                                                <uc3:usrIdNumber ID="ddlDriverIdNumber4" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlDriver5" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo5" runat="server" Text="Driver No: 5"></asp:Label><asp:Label
                                                            ID="lblDriverId5" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Driver DOB/Gender:</div>
                                                            <div class="left pad_6t">
                                                                <asp:Label ID="lblDriverDOB5" runat="server"></asp:Label>&nbsp;&nbsp;
                                                                <asp:Label ID="lblDriverGender5" runat="server"></asp:Label>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Salutation:</div>
                                                            <div class="left">
                                                                <uc8:usrSalutation ID="ddlDriverSalutation5" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                            <div style="display: none;">
                                                                <uc6:usrGender ID="ddlDriverGender5" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div style="display: none">
                                                            <asp:TextBox ID="txtDriverSalGenderValid5" Text="Valid" runat="server"></asp:TextBox><asp:CustomValidator
                                                                CssClass="validationErrorControl" ControlToValidate="txtDriverSalGenderValid5"
                                                                ValidationGroup="proposal" ID="csvDriverSalGender5" ClientValidationFunction="CheckDriverSalGenderValid5"
                                                                OnServerValidate="CheckDriverSalGenderValid5" runat="server" ErrorMessage="Salutation and gender do not match."
                                                                Text=""></asp:CustomValidator>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Surname:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName5" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName5"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName5"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                Given Name:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName5" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Type:</div>
                                                            <div class="left">
                                                                <uc7:usrIdType ID="ddlDriverIdType5" runat="server" ValidationGroup="proposal"></uc7:usrIdType>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span> Identification Number:</div>
                                                            <div class="left">
                                                                <uc3:usrIdNumber ID="ddlDriverIdNumber5" runat="server" ValidationGroup="proposal" />
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                        <div class="bottom">
                                        </div>
                                    </div>
                                    <div class="seperator">
                                    </div>
                                </asp:Panel>
                                <div class="seperator">
                                </div>
                                <div class="hilite" id="divParticularsofVechicleHeader">
                                    <div class="top">
                                    </div>
                                    <div class="body_in pad_15x" style="display: " id="divParticularsofVechicle">
                                        <div>
                                            <h1>
                                                Particulars of Vehicle</h1>
                                        </div>
                                        <div class="seperator">
                                        </div>
                                        <div class="w43per left">
                                            <div id="divVehicleNo">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Vehicle Registration No:</div>
                                                <div class="left pad_6t">
                                                    <asp:TextBox ID="txtVehicleNo" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="rfvVehicleNo" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtVehicleNo" Display="Dynamic"></asp:RequiredFieldValidator>
                                                    <asp:RequiredFieldValidator ID="rfvVehicleNoSave" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtVehicleNo"
                                                        Display="Dynamic"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="clear">
                                            </div>
                                            <div id="div13" style="text-align: center;">
                                                <asp:CustomValidator CssClass="validationErrorControl" ControlToValidate="txtVehicleNoValid"
                                                    ValidationGroup="proposal" ID="csvVehicleNoValid" runat="server" ErrorMessage="we do not accept commercial vehicle"
                                                    Text="" OnServerValidate="csvVehicleNoValid_ServerValidate"></asp:CustomValidator>
                                                <div style="display: none;">
                                                    <asp:TextBox ID="txtVehicleNoValid" Text="Valid" runat="server"></asp:TextBox></div>
                                            </div>
                                            <%--<div class="row" id="divYORegisteration">
                                                <label for="Year of Registeration" class="mand_red">Year of Registeration</label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList ID="ddlRegYear" runat="server"></asp:DropDownList>
                                                        <asp:RequiredFieldValidator Display="Dynamic" CssClass="validationErrorControl"
                                                            ControlToValidate="ddlRegYear" InitialValue="-1" runat="server" ID="rfvRegYear"
                                                            ErrorMessage="" Text="" ValidationGroup="cardetail">
                                                        </asp:RequiredFieldValidator>
                                                    </span>
                                                </div>
                                                <div class="clear"></div>
                                            </div>--%>
                                            <div class="h10">
                                            </div>
                                            <div id="divEngineNo">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Engine No:</div>
                                                <div class="left pad_6t">
                                                    <asp:TextBox ID="txtEngineNo" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="rfvEngineNo" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtEngineNo"></asp:RequiredFieldValidator>
                                                    <asp:RequiredFieldValidator ID="rfvEngineNoSave" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtEngineNo"></asp:RequiredFieldValidator>
                                                    <asp:HyperLink ID="hyLinkLTA" runat="server" NavigateUrl="https://vrl.lta.gov.sg/lta/vrl/action/pubfunc?ID=EnquireTransferFee"
                                                        Target="_blank"><img src="/images/icon/info.png" alt="Click to Check your Vehicle Engine number / Chassis number." title="Click to Check your Vehicle Engine number / Chassis number." width="15"/></asp:HyperLink></div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divChassisNo">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Chassis No:</div>
                                                <div class="left pad_6t">
                                                    <asp:TextBox ID="txtChassisNo" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="rfvChassisNo" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtChassisNo"></asp:RequiredFieldValidator>
                                                    <asp:RequiredFieldValidator ID="rfvChassisNoSave" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtChassisNo"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="w56per left">
                                            <div id="divHirePurchasestatus">
                                                <div class="w220 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Any hire purchase to your motor vehicle?</div>
                                                <div class="left pad_8yr">
                                                    <span id="divYesHirePurchase">
                                                        <asp:RadioButton onclick="ShowHideDiv('divHirePurchase',true);ValHirePurchase(true);CheckHirePurchaseValidationCss();"
                                                            ID="rdoYesHirePurchase" runat="server" GroupName="hirepurchase" />
                                                        <asp:Label ID="lblYesHirePurchase" class="pad_15xr" runat="server" Text="Yes"></asp:Label>
                                                    </span><span id="divNoHirePurchase">
                                                        <asp:RadioButton onclick="ShowHideDiv('divHirePurchase',false);ValHirePurchase(false);CheckHirePurchaseValidationCss();"
                                                            ID="rdoNoHirePurchase" runat="server" GroupName="hirepurchase" />
                                                        <asp:Label ID="lblNoHirePurchase" runat="server" Text="No"></asp:Label>
                                                    </span>
                                                    <div style="display: none">
                                                        <asp:TextBox ID="txtHirePurchase" runat="server"></asp:TextBox></div>
                                                    <asp:RequiredFieldValidator ID="rfvHirePurchase" runat="server" CssClass="validationErrorControl"
                                                        Display="Dynamic" ErrorMessage="" ControlToValidate="txtHirePurchase" ValidationGroup="proposal"
                                                        Text=""></asp:RequiredFieldValidator>
                                                    <asp:RequiredFieldValidator ID="rfvHirePurchaseSave" runat="server" CssClass="validationErrorControl"
                                                        Display="Dynamic" ErrorMessage="" ControlToValidate="txtHirePurchase" ValidationGroup="tempsaveproposal"
                                                        Text=""></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div id="divHirePurchase" style="display: ">
                                                <div class="h10">
                                                </div>
                                                <div id="divHirePurchaseCompany">
                                                    <div class="w220 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span> Company Name:</div>
                                                    <div class="left">
                                                        <asp:DropDownList ID="ddlHirePurchaseCompany" Width="270px" runat="server">
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator ID="rfvHirePurchaseCompany" ControlToValidate="ddlHirePurchaseCompany"
                                                            CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="proposal"
                                                            Text="" ErrorMessage=""></asp:RequiredFieldValidator>
                                                        <asp:RequiredFieldValidator ID="rfvHirePurchaseCompanySave" ControlToValidate="ddlHirePurchaseCompany"
                                                            CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="tempsaveproposal"
                                                            Text="" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <%--<div id="divExistingInsurerstatus">
                                                <div class="w220 left align_right pad_6t pad_7xr">
                                                   <span class="red">*</span>  Do you have any motor vehicle Insurance?:</div>
                                                <div class="left pad_8yr">
                                                    <span id="divYesExistingInsurer">
                                                        <asp:RadioButton onclick="ShowHideDiv('divExistingInsurer',true);ValExistingInsurer(true);CheckExistingInsurerValidationCss();ShowHideDiv('divGeneralQuestions',true);"
                                                            ID="rdoYesExistingInsurer" runat="server" GroupName="existinginsurer" />
                                                        <asp:Label ID="lblYesExistingInsurer" class="pad_15xr" runat="server" Text="Yes"></asp:Label>
                                                    </span>
                                                    <span id="divNoExistingInsurer">
                                                        <asp:RadioButton onclick="ShowHideDiv('divExistingInsurer',false);ValExistingInsurer(false);CheckExistingInsurerValidationCss();ShowHideDiv('divGeneralQuestions',true);"
                                                            ID="rdoNoExistingInsurer" runat="server" GroupName="existinginsurer" />
                                                        <asp:Label ID="lblNoExistingInsurer" runat="server" Text="No"></asp:Label>
                                                    </span>
                                                    <div style="display:none">
                                                        <asp:TextBox ID="txtExistingInsurer" runat="server"></asp:TextBox></div>
                                                    <asp:RequiredFieldValidator ID="rfvExistingInsurer" runat="server" CssClass="validationErrorControl"
                                                        Display="Dynamic" ErrorMessage="" ControlToValidate="txtExistingInsurer" ValidationGroup="proposal"
                                                        Text=""></asp:RequiredFieldValidator>
                                                </div>
                                            </div>--%>
                                            <div id="divInsuranceCompany">
                                                <div class="w220 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> Existing Insurer:</div>
                                                <div class="left">
                                                    <asp:DropDownList ID="ddlExistingInsurerName" Width="270px" runat="server" onchange="javascript:if (this.value != '177') { ShowHideDiv('divExistingInsurer',true); }ShowInsurerStatus();">
                                                    </asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="rfvExistingInsurerName" ControlToValidate="ddlExistingInsurerName"
                                                        CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="proposal"
                                                        Text="" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    <asp:RequiredFieldValidator ID="rfvExistingInsurerNameSave" ControlToValidate="ddlExistingInsurerName"
                                                        CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="tempsaveproposal"
                                                        Text="" ErrorMessage=""></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divExistingInsurer" style="display: ">
                                                <div class="h10">
                                                </div>
                                                <%--<div id="divInsuranceCompany">
                                                    <div class="w220 left align_right pad_6t pad_7xr">
                                                       <span class="red">*</span> Existing Insurer:</div>
                                                    <div class="left">
                                                        <asp:DropDownList ID="ddlExistingInsurerName" Width="270px" runat="server" >
                                                        </asp:DropDownList>
                                                        <asp:RequiredFieldValidator ID="rfvExistingInsurerName" ControlToValidate="ddlExistingInsurerName"
                                                            CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="proposal"
                                                            Text="" ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                <div class="h10"></div>--%>
                                                <div id="divInsPolicyNo">
                                                    <div class="w220 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span> Policy No.:</div>
                                                    <div class="left">
                                                        <asp:TextBox ID="txtInsPolicyNo" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="rfvInsPolicyNo" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtInsPolicyNo"
                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                        <asp:RequiredFieldValidator ID="rfvInsPolicyNoSave" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="tempsaveproposal" ControlToValidate="txtInsPolicyNo"
                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                <div class="h10">
                                                </div>
                                                <div id="divInsCanceldate">
                                                    <div class="w220 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span> Expiry / Cancellation Date:</div>
                                                    <div class="left">
                                                        <uc2:usrDate ID="ddlDOCancellation" ErrorMessage="" runat="server" ValidationGroup="proposal" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="bottom">
                                    </div>
                                </div>
                                <div class="seperator">
                                </div>

                                <script type="text/javascript">
                                    IncreaseProgress(50);
                                </script>

                                <div class="twoclmn" id="divGeneralQuestionsHeader">
                                    <div class="top">
                                    </div>
                                    <div class="body pad_15x" id="divGeneralQuestions">
                                        <h1>
                                            General Questions</h1>
                                        <div class="seperator">
                                        </div>
                                        <div id="divDermeritPointsStatus" class="mar_10by">
                                            <div class="w650 left align_right pad_10xr">
                                                <span class="red">*</span> 1) Have you or your named driver(s) been given / accumulated
                                                demerit points during the last 24 months?
                                            </div>
                                            <div class="w220 left pad_20_10x">
                                                <span id="divYesDermeritPoints">
                                                    <asp:RadioButton onclick="ShowHideDiv('divDermeritPoints',true);ValDermeritPoints(true);CheckDermeritPointsValidationCss();"
                                                        ID="rdoYesDermeritPoints" runat="server" GroupName="dermeritpoints" />
                                                    <asp:Label ID="lblYesDermeritPoints" class="pad_10xr" runat="server" Text="Yes"></asp:Label>
                                                </span><span id="divNoDermeritPoints">
                                                    <asp:RadioButton onclick="ShowHideDiv('divDermeritPoints',false);ValDermeritPoints(false);CheckDermeritPointsValidationCss();"
                                                        ID="rdoNoDermeritPoints" runat="server" GroupName="dermeritpoints" />
                                                    <asp:Label ID="lblNoDermeritPoints" runat="server" Text="No"></asp:Label>
                                                </span>
                                                <div style="display: none">
                                                    <asp:TextBox ID="txtDermeritPoints" runat="server"></asp:TextBox>
                                                </div>
                                                <asp:RequiredFieldValidator ID="rfvDermeritPoints" runat="server" CssClass="validationErrorControl"
                                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtDermeritPoints" ValidationGroup="proposal"
                                                    Text=""></asp:RequiredFieldValidator>
                                                <asp:RequiredFieldValidator ID="rfvDermeritPointsSave" runat="server" CssClass="validationErrorControl"
                                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtDermeritPoints" ValidationGroup="tempsaveproposal"
                                                    Text=""></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                        <div style="display: " id="divDermeritPoints" class="mar_10by">
                                            <div class="h7">
                                            </div>
                                            <div class="w650 left align_right pad_10xr">
                                                <table cellpadding="0" cellspacing="2">
                                                    <tr>
                                                        <td>
                                                            Driver
                                                        </td>
                                                        <td>
                                                            Total Demerit Points
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:TextBox ID="txtDrivername1" runat="server" MaxLength="50"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvDrivername1" runat="server" CssClass="validationErrorControl"
                                                                Display="Dynamic" ErrorMessage="" ControlToValidate="txtDrivername1" ValidationGroup="proposal"
                                                                Text=""></asp:RequiredFieldValidator>
                                                            <asp:RequiredFieldValidator ID="rfvDrivername1Save" runat="server" CssClass="validationErrorControl"
                                                                Display="Dynamic" ErrorMessage="" ControlToValidate="txtDrivername1" ValidationGroup="tempsaveproposal"
                                                                Text=""></asp:RequiredFieldValidator>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtTotalpoints1" runat="server" MaxLength="2"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvTotalpoints1" runat="server" CssClass="validationErrorControl"
                                                                Display="Dynamic" ErrorMessage="" ControlToValidate="txtTotalpoints1" ValidationGroup="proposal"
                                                                Text=""></asp:RequiredFieldValidator>
                                                            <asp:RequiredFieldValidator ID="rfvTotalpoints1Save" runat="server" CssClass="validationErrorControl"
                                                                Display="Dynamic" ErrorMessage="" ControlToValidate="txtTotalpoints1" ValidationGroup="tempsaveproposal"
                                                                Text=""></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:TextBox ID="txtDrivername2" runat="server" MaxLength="50"></asp:TextBox>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtTotalpoints2" runat="server" MaxLength="2"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:TextBox ID="txtDrivername3" runat="server" MaxLength="50"></asp:TextBox>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtTotalpoints3" runat="server" MaxLength="2"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:TextBox ID="txtDrivername4" runat="server" MaxLength="50"></asp:TextBox>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtTotalpoints4" runat="server" MaxLength="2"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:TextBox ID="txtDrivername5" runat="server" MaxLength="50"></asp:TextBox>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtTotalpoints5" runat="server" MaxLength="2"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:TextBox ID="txtDrivername6" runat="server" MaxLength="50"></asp:TextBox>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtTotalpoints6" runat="server" MaxLength="2"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <div class="w220 left pad_20_10x">
                                            </div>
                                        </div>
                                        <div class="h7">
                                        </div>
                                        <div id="divInsuranceterminatedStatus" class="mar_10by">
                                            <div class="w650 left align_right pad_10xr">
                                                <span class="red">*</span> 2) Have you or your named driver(s) had any motor insurance
                                                proposal declined, cancelled or renewal rejected by any insurance company?
                                            </div>
                                            <div class="w220 left pad_20_10x">
                                                <span id="divYesInsuranceterminated">
                                                    <asp:RadioButton onclick="ShowHideDiv('divInsuranceterminated',true);ValInsuranceterminated(true);CheckInsuranceterminatedValidationCss();"
                                                        ID="rdoYesInsuranceterminated" runat="server" GroupName="insuranceterminated" />
                                                    <asp:Label ID="lblYesInsuranceterminated" class="pad_10xr" runat="server" Text="Yes"></asp:Label>
                                                </span><span id="divNoInsuranceterminated">
                                                    <asp:RadioButton onclick="ShowHideDiv('divInsuranceterminated',false);ValInsuranceterminated(false);CheckInsuranceterminatedValidationCss();"
                                                        ID="rdoNoInsuranceterminated" runat="server" GroupName="insuranceterminated" />
                                                    <asp:Label ID="lblNoInsuranceterminated" runat="server" Text="No"></asp:Label>
                                                </span>
                                                <div style="display: none">
                                                    <asp:TextBox ID="txtInsuranceterminated" runat="server"></asp:TextBox>
                                                </div>
                                                <asp:RequiredFieldValidator ID="rfvInsuranceterminated" runat="server" CssClass="validationErrorControl"
                                                    ErrorMessage="" ControlToValidate="txtInsuranceterminated" ValidationGroup="proposal"
                                                    Text=""></asp:RequiredFieldValidator>
                                                <asp:RequiredFieldValidator ID="rfvInsuranceterminatedSave" runat="server" CssClass="validationErrorControl"
                                                    ErrorMessage="" ControlToValidate="txtInsuranceterminated" ValidationGroup="tempsaveproposal"
                                                    Text=""></asp:RequiredFieldValidator>
                                                <div style="display: " id="divInsuranceterminated">
                                                    <div>
                                                        <div class="h7">
                                                        </div>
                                                        <span class="red">*</span> Please specify<br />
                                                        <div id="divITPleasespecify">
                                                            <asp:TextBox ID="txtITReason" runat="server" MaxLength="50" Rows="2" TextMode="MultiLine"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvITReason" ControlToValidate="txtITReason" ErrorMessage=""
                                                                ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                                            <asp:RequiredFieldValidator ID="rfvITReasonSave" ControlToValidate="txtITReason"
                                                                ErrorMessage="" ValidationGroup="tempsaveproposal" CssClass="validationErrorControl"
                                                                runat="server"></asp:RequiredFieldValidator>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="h7">
                                        </div>
                                        <div id="divPhysicalimpairmentStatus" class="mar_10by">
                                            <div class="w650 left align_right pad_10xr">
                                                <span class="red">*</span> 3) Have you or your named driver(s) suffered any disease
                                                or infirmity that could impair the ability to drive?
                                            </div>
                                            <div class="w220 left pad_20_10x">
                                                <span id="divYesPhysicalimpairment">
                                                    <asp:RadioButton onclick="ShowHideDiv('divPhysicalimpairment',true);ValPhysicalimpairment(true);CheckPhysicalimpairmentValidationCss();"
                                                        ID="rdoYesPhysicalimpairment" runat="server" GroupName="physicalimpairment" />
                                                    <asp:Label ID="lblYesPhysicalimpairment" class="pad_10xr" runat="server" Text="Yes"></asp:Label>
                                                </span><span id="divNoPhysicalimpairment">
                                                    <asp:RadioButton onclick="ShowHideDiv('divPhysicalimpairment',false);ValPhysicalimpairment(false);CheckPhysicalimpairmentValidationCss();"
                                                        ID="rdoNoPhysicalimpairment" runat="server" GroupName="physicalimpairment" />
                                                    <asp:Label ID="lblNoPhysicalimpairment" runat="server" Text="No"></asp:Label>
                                                </span>
                                                <div style="display: none">
                                                    <asp:TextBox ID="txtPhysicalimpairment" runat="server"></asp:TextBox>
                                                </div>
                                                <asp:RequiredFieldValidator ID="rfvPhysicalimpairment" runat="server" CssClass="validationErrorControl"
                                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtPhysicalimpairment" ValidationGroup="proposal"
                                                    Text=""></asp:RequiredFieldValidator>
                                                <asp:RequiredFieldValidator ID="rfvPhysicalimpairmentSave" runat="server" CssClass="validationErrorControl"
                                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtPhysicalimpairment" ValidationGroup="tempsaveproposal"
                                                    Text=""></asp:RequiredFieldValidator>
                                                <div style="display: " id="divPhysicalimpairment">
                                                    <div>
                                                        <div class="h7">
                                                        </div>
                                                        <span class="red">*</span> Please specify<br />
                                                        <div id="divPIPleasespecify">
                                                            <asp:TextBox ID="txtPIReason" runat="server" MaxLength="50" Rows="2" TextMode="MultiLine"
                                                                size="25"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvPIReason" ControlToValidate="txtPIReason" ErrorMessage=""
                                                                ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                                            <asp:RequiredFieldValidator ID="rfvPIReasonSave" ControlToValidate="txtPIReason"
                                                                ErrorMessage="" ValidationGroup="tempsaveproposal" CssClass="validationErrorControl"
                                                                runat="server"></asp:RequiredFieldValidator>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="h7">
                                        </div>
                                        <div id="divModifiedVehicleStatus" class="mar_10by">
                                            <div class="w650 left align_right pad_10xr">
                                                <span class="red">*</span> 4) Has your vehicle been modified/altered from the original
                                                manufacturer's specifications, including any LTA approved modification?
                                            </div>
                                            <div class="w220 left pad_20_10x">
                                                <span id="divYesModifiedVehicle">
                                                    <asp:RadioButton onclick="ValModifiedVehicle(true);CheckModifiedVehicleValidationCss();ShowHideDiv('divDeclaration',true);"
                                                        ID="rdoYesModifiedVehicle" runat="server" GroupName="modifiedvehicle" />
                                                    <asp:Label ID="Label3" class="pad_10xr" runat="server" Text="Yes"></asp:Label>
                                                </span><span id="divNoModifiedVehicle">
                                                    <asp:RadioButton onclick="ValModifiedVehicle(false);CheckModifiedVehicleValidationCss();ShowHideDiv('divDeclaration',true);"
                                                        ID="rdoNoModifiedVehicle" runat="server" GroupName="modifiedvehicle" />
                                                    <asp:Label ID="Label4" runat="server" Text="No"></asp:Label>
                                                </span>
                                                <div style="display: none">
                                                    <asp:TextBox ID="txtModifiedVehicle" runat="server"></asp:TextBox>
                                                    <asp:TextBox ID="txtModifiedVehicleYes" runat="server" Text="1"></asp:TextBox>
                                                </div>
                                                <asp:RequiredFieldValidator ID="rfvModifiedVehicle" runat="server" CssClass="validationErrorControl"
                                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtModifiedVehicle" ValidationGroup="proposal"></asp:RequiredFieldValidator>
                                                <asp:RequiredFieldValidator ID="rfvModifiedVehicleYes" runat="server" CssClass="validationErrorControl"
                                                    Display="Dynamic" ErrorMessage="Sorry, Etiqa declines modified/altered vehicles."
                                                    ControlToValidate="txtModifiedVehicleYes" ValidationGroup="proposal" Text="Sorry, Etiqa declines modified/altered vehicles."></asp:RequiredFieldValidator>
                                                <asp:RequiredFieldValidator ID="rfvModifiedVehicleSave" runat="server" CssClass="validationErrorControl"
                                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtModifiedVehicle" ValidationGroup="tempsaveproposal"></asp:RequiredFieldValidator>
                                                <asp:RequiredFieldValidator ID="rfvModifiedVehicleYesSave" runat="server" CssClass="validationErrorControl"
                                                    Display="Dynamic" ErrorMessage="Sorry, Etiqa declines modified/altered vehicles."
                                                    ControlToValidate="txtModifiedVehicleYes" ValidationGroup="tempsaveproposal" Text="Sorry, Etiqa declines modified/altered vehicles."></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                        <div class="w200 left pad_30x">
                                        </div>
                                    </div>
                                    <div class="bottom">
                                    </div>
                                </div>
                                <div class="seperator">
                                </div>

                                <script type="text/javascript">
                                    IncreaseProgress(75);
                                </script>

                                <div class="norm" id="divDeclarationHeader">
                                    <div class="top">
                                    </div>
                                    <div class="body">
                                        <div class="pad_15x">
                                            <h1>
                                                Declaration and Authorisation</h1>
                                            <div class="seperator">
                                            </div>
                                        </div>
                                        <div style="display: " id="divDeclaration" class="pad_15x">
                                            <p>
                                                1) I / We have declared to the best of my knowledge and belief that all the answers
                                                given in this proposal are true and correct and I / We have not withheld any information
                                                likely to affect acceptance of this proposal.</p>
                                            <div class="h7">
                                            </div>
                                            <p>
                                                2) I / We agree that his proposal shall be the basis of the Contract between me/us
                                                and the Company and I / We further agree to accept the Company's policy subject
                                                to the terms exclusions and conditions expressed therein endorsed thereon or attached
                                                thereto.</p>
                                            <div class="h7">
                                            </div>
                                            <p>
                                                3) I / We undertake the vehicle to be insured is and will be kept in a good condition,and
                                                will not be driven by any person whom to my / our knowledge has been refused motor
                                                insurance or continuance therefore.</p>
                                            <div class="h7">
                                            </div>
                                            <p>
                                                If this Proposal has not been completed by me / us personally, I / We declare that
                                                I / We have read the completed form and accept full responsibility for the answers.</p>
                                            <div class="seperator">
                                            </div>
                                            <asp:CheckBox onclick="CheckAgreed()" ID="chkAgreed" runat="server" Text="" />
                                            <span><b>I agree to the above statement.</b></span> <span>
                                                <asp:RequiredFieldValidator ControlToValidate="txtAgreed" ID="rfvAgreed" runat="server"
                                                    CssClass="validationErrorControl" ErrorMessage="You must agree to the Declaration & Authorization below."
                                                    Text="You must agree to the Declaration & Authorization." ValidationGroup="proposal"></asp:RequiredFieldValidator>
                                            </span>
                                            <div style="display: none">
                                                <asp:TextBox ID="txtAgreed" runat="server" />

                                                <script type="text/javascript">
                                                    function CheckAgreed() {
                                                        //alert('rdoYesOffFDCom');
                                                        var ctrlTxt = document.getElementById('<%=txtAgreed.ClientID%>');
                                                        var ctrlY = document.getElementById('<%=chkAgreed.ClientID%>');
                                                        var valCtrl = document.getElementById('<%=rfvAgreed.ClientID%>');
                                                        if (ctrlY.checked == true) {
                                                            ctrlTxt.value = '1';
                                                            valCtrl.style.visibility = 'hidden';
                                                            //ShowHideDiv('divPaymentMode', true);
                                                            //ShowHideDiv('divNCDProtection', true);

                                                            var ncdvalue = document.getElementById('<%=inputCurrentNCD.ClientID%>');
                                                            var lblClaim = document.getElementById("<%=inputClaim.ClientID%>");

                                                            //alert(lblClaim.value);
                                                            if (ncdvalue.value == '50' && lblClaim.value == 'No')
                                                                ShowHideDiv('divNCDProtection', true);
                                                            else
                                                                ShowHideDiv('divNCDProtection', false);

                                                        }
                                                        else {
                                                            ctrlTxt.value = '';
                                                            ShowHideDiv('divNCDProtection', false);
                                                            //ShowHideDiv('divPaymentMode', false);
                                                        }
                                                    }
                                                </script>

                                            </div>
                                            <div id="divAgentSave" runat="server" visible="false">
                                                <br />
                                                agent option >>
                                                <asp:ImageButton ID="imgbtnSave" runat="server" ImageUrl="~/images/forms_proposal/button/save.png"
                                                    OnClick="imgbtnSave_Click" ImageAlign="Bottom" ValidationGroup="tempsaveproposal"
                                                    OnClientClick="LoadValidationErrorCss();" />
                                                <asp:Label ID="lblMessageSave" runat="server" ForeColor="Red"></asp:Label>
                                                <asp:ValidationSummary ID="ValidationSummary1" CssClass="validation_div" runat="server"
                                                    ValidationGroup="tempsaveproposal" HeaderText="Please complete the form" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="bottom">
                                    </div>
                                </div>
                                <div style="display: " id="divNCDProtection">
                                    <div class="seperator">
                                    </div>
                                    <div class="hilite" id="divNCDProtectionHeader">
                                        <div class="top">
                                        </div>
                                        <div class="body_in pad_15x">
                                            <h1>
                                                NCD Protection</h1>
                                            <div class="h7">
                                            </div>
                                            <div>
                                                <div class="w220 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span> NCD Protection:</div>
                                                <div class="left pad_8yr">
                                                    <span id="divNoNCD">
                                                        <input id="inputNCD" value="" runat="server" type="hidden" />
                                                        <input id="inputCurrentNCD" value="" runat="server" type="hidden" />
                                                        <input id="inputClaim" value="" runat="server" type="hidden" />
                                                        <asp:RadioButton runat="server" ID="rdoNo" GroupName="ncdprotect" onclick="SetPremiumValue();"
                                                            Checked="true" />
                                                        <asp:Label ID="Label1" runat="server" Text="NO"></asp:Label>
                                                    </span><span id="divYesNCD">
                                                        <asp:RadioButton runat="server" ID="rdoYes" GroupName="ncdprotect" onclick="SetPremiumValue();" />
                                                        <asp:Label ID="Label2" runat="server" Text="YES"></asp:Label>
                                                    </span>
                                                </div>
                                            </div>
                                            <div id="divPremiumRates" style="display: ">
                                                <div class="h7">
                                                </div>
                                                <div>
                                                    <div class="w220 left align_right pad_6t pad_7xr">
                                                        Premium BEFORE NCD Protection:</div>
                                                    <div class="left pad_8yr" id="div3">
                                                        <asp:Label ID="lblPremiumBeforeNCDPro" Font-Bold="true" runat="server" />
                                                        <asp:Label ID="lblPremiumBeforeNCDProNoFormat" Font-Bold="true" Visible="false" runat="server"></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="h7">
                                                </div>
                                                <div>
                                                    <div class="w220 left align_right pad_6t pad_7xr">
                                                        Premium AFTER NCD Protection:</div>
                                                    <div class="left pad_8yr" id="div4">
                                                        <asp:Label ID="lblPremiumAfterNCDPro" Font-Bold="true" runat="server"></asp:Label>
                                                        <asp:Label ID="lblPremiumAfterNCDProNoFormat" Font-Bold="true" runat="server" Visible="false"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                        </div>
                                        <div class="bottom">
                                        </div>
                                    </div>
                                </div>
                                <div class="seperator">
                                </div>
                                <div class="center align_center" id="divFormButtons">
                                    <asp:ImageButton OnClientClick="ShowHideDiv('divDeclaration',true);CheckOptionValidationCss();LoadValidationErrorCss();return SubmitConfirm();"
                                        ID="ibtSubmit" CssClass="button" runat="server" ValidationGroup="proposal" ImageUrl="~/images/forms_proposal/button/submit.png"
                                        OnClick="ibtSubmit_Click" />
                                    <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
                                    <div class="note">
                                        <img src="/images/forms_proposal/icon/warning.png" width="21" height="18" alt="Note"
                                            style="vertical-align: middle; padding-bottom: 3px" />
                                        <strong>Note</strong>, by clicking on the SUBMIT button you agree to our Website's
                                        <a href="../../terms/" target="_blank">Terms &amp; Conditions</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="bottom">
                        </div>
                    </div>
                </div>
                <div class="seperator">
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        IncreaseProgress(90);
    </script>

    <div id="footer">
        <div id="nav_bottom" class="pad_7t">
            <div class="left pad_8yr">
                <%-- <asp:ImageButton ID="imgbtnBackBottom" runat="server" ImageUrl="/images/forms_proposal/button/back.png"
                    OnClick="imgbtnBackTop_Click" OnClientClick="return confirm('Are you sure to go back?');" />--%>
                <a href="/car-insurance/results.aspx" id="lnkBackBottom" onclick="return confirm('Are you sure to go back?');">
                    <img src="/images/forms_proposal/button/back.png" alt="Back" /></a>
            </div>
            <div class="right pad_8yr">
                <a href="#" onclick="window.print()">
                    <img src="/images/forms_proposal/button/print.png" alt="Print" /></a>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        function ShowHideDiv(divName, varOnOff) {
            if (varOnOff) {
                document.getElementById(divName).style.display = "";
            }
            else {
                document.getElementById(divName).style.display = "none";
            }
        }

        function ShowInsurerStatus() {
            var Insurer = document.getElementById('<%=ddlExistingInsurerName.ClientID%>').value;
            //alert(Insurer);
            if (Insurer != '177') {
                ShowHideDiv('divExistingInsurer', true);
                ValidatorEnable(document.getElementById('<%=rfvExistingInsurerName.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvExistingInsurerNameSave.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvInsPolicyNo.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvInsPolicyNoSave.ClientID%>'), true);
                IsEnableDateValidation('<%=ddlDOCancellation.ClientID%>', true);
            }
            else {
                ShowHideDiv('divExistingInsurer', false);
                ValidatorEnable(document.getElementById('<%=rfvExistingInsurerName.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvExistingInsurerNameSave.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvInsPolicyNo.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=rfvInsPolicyNoSave.ClientID%>'), false);
                IsEnableDateValidation('<%=ddlDOCancellation.ClientID%>', false);
            }
        }


        function CheckOptionValidationCss() {
            //alert("1");
            CheckHirePurchaseValidationCss();
            //alert("2");
            //CheckExistingInsurerValidationCss();
            //alert("3");
            CheckDermeritPointsValidationCss();
            //alert("4");
            CheckInsuranceterminatedValidationCss();
            //alert("5");
            CheckPhysicalimpairmentValidationCss();
            //alert("6");
            //CheckCardTypeValidationCss();
            //alert("7");
            //EnableDisableDriverValidations();
            CheckModifiedVehicleValidationCss();

            ShowInsurerStatus();
        }

        function CheckValidationCss(divYes, divNo, ctrlText, valCtrl) {
            ShowValidationEffectOption(divYes, divNo, ctrlText, valCtrl);
            return true;
        }

        function CheckHirePurchaseValidationCss() {
            CheckValidationCss('divYesHirePurchase', 'divNoHirePurchase', '<%=txtHirePurchase.ClientID%>', '<%=rfvHirePurchase.ClientID%>');
            CheckValidationCss('divYesHirePurchase', 'divNoHirePurchase', '<%=txtHirePurchase.ClientID%>', '<%=rfvHirePurchaseSave.ClientID%>');
        }

        function ValHirePurchase(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtHirePurchase.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvHirePurchaseCompany.ClientID%>'), varOnOff);
            ValidatorEnable(document.getElementById('<%=rfvHirePurchaseCompanySave.ClientID%>'), varOnOff);
        }

        //        function CheckExistingInsurerValidationCss() {
        //            CheckValidationCss('divYesExistingInsurer', 'divNoExistingInsurer', '<=txtExistingInsurer.ClientID>', '<=rfvExistingInsurer.ClientID>');
        //        }

        function ValExistingInsurer(varOnOff) {
            //var txtCtrl = document.getElementById("<=txtExistingInsurer.ClientID>");
            //txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvExistingInsurerName.ClientID%>'), true);
            ValidatorEnable(document.getElementById('<%=rfvExistingInsurerNameSave.ClientID%>'), true);
            ValidatorEnable(document.getElementById('<%=rfvInsPolicyNo.ClientID%>'), varOnOff);
            IsEnableDateValidation('<%=ddlDOCancellation.ClientID%>', varOnOff);
        }

        function CheckDermeritPointsValidationCss() {
            CheckValidationCss('divYesDermeritPoints', 'divNoDermeritPoints', '<%=txtDermeritPoints.ClientID%>', '<%=rfvDermeritPoints.ClientID%>');
            CheckValidationCss('divYesDermeritPoints', 'divNoDermeritPoints', '<%=txtDermeritPoints.ClientID%>', '<%=rfvDermeritPointsSave.ClientID%>');
        }

        function ValDermeritPoints(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtDermeritPoints.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvDrivername1.ClientID%>'), varOnOff);
            ValidatorEnable(document.getElementById('<%=rfvDrivername1Save.ClientID%>'), varOnOff);
            ValidatorEnable(document.getElementById('<%=rfvTotalpoints1.ClientID%>'), varOnOff);
            ValidatorEnable(document.getElementById('<%=rfvTotalpoints1Save.ClientID%>'), varOnOff);
        }

        function CheckInsuranceterminatedValidationCss() {
            CheckValidationCss('divYesInsuranceterminated', 'divNoInsuranceterminated', '<%=txtInsuranceterminated.ClientID%>', '<%=rfvInsuranceterminated.ClientID%>');
            CheckValidationCss('divYesInsuranceterminated', 'divNoInsuranceterminated', '<%=txtInsuranceterminated.ClientID%>', '<%=rfvInsuranceterminatedSave.ClientID%>');
        }

        function ValInsuranceterminated(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtInsuranceterminated.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvITReason.ClientID%>'), varOnOff);
            ValidatorEnable(document.getElementById('<%=rfvITReasonSave.ClientID%>'), varOnOff);
        }

        function CheckPhysicalimpairmentValidationCss() {
            CheckValidationCss('divYesPhysicalimpairment', 'divNoPhysicalimpairment', '<%=txtPhysicalimpairment.ClientID%>', '<%=rfvPhysicalimpairment.ClientID%>');
            CheckValidationCss('divYesPhysicalimpairment', 'divNoPhysicalimpairment', '<%=txtPhysicalimpairment.ClientID%>', '<%=rfvPhysicalimpairmentSave.ClientID%>');
        }

        function ValPhysicalimpairment(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtPhysicalimpairment.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvPIReason.ClientID%>'), varOnOff);
            ValidatorEnable(document.getElementById('<%=rfvPIReasonSave.ClientID%>'), varOnOff);
        }

        function CheckModifiedVehicleValidationCss() {
            CheckValidationCss('divYesModifiedVehicle', 'divNoModifiedVehicle', '<%=txtModifiedVehicle.ClientID%>', '<%=rfvModifiedVehicle.ClientID%>');
            CheckValidationCss('divYesModifiedVehicle', 'divNoModifiedVehicle', '<%=txtModifiedVehicle.ClientID%>', '<%=rfvModifiedVehicleSave.ClientID%>');
        }

        function ValModifiedVehicle(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtModifiedVehicle.ClientID%>");
            var txtCtrlYes = document.getElementById("<%=txtModifiedVehicleYes.ClientID%>");
            var valCtrl = document.getElementById('<%=rfvModifiedVehicleYes.ClientID%>');
            var valCtrl2 = document.getElementById('<%=rfvModifiedVehicleYesSave.ClientID%>');

            txtCtrl.value = "1";

            if (document.getElementById('<%=rdoYesModifiedVehicle.ClientID%>').checked == true) {
                txtCtrlYes.value = "";
                valCtrl.style.visibility = '';
                valCtrl2.style.visibility = '';
            }
            else {
                txtCtrlYes.value = "1";
                valCtrl.style.visibility = 'hidden';
                valCtrl2.style.visibility = 'hidden';
            }


        }

        function SetPremiumValue() {

            if (document.getElementById('<%=rdoYes.ClientID%>').checked == true)
                ShowHideDiv('divPremiumRates', true);
            else
                ShowHideDiv('divPremiumRates', false);

        }

        function CheckDriverSalGenderValid1(source, arguments) {
            var ctrlsal = document.getElementById('<%=ddlDriverSalutation1.ClientID%>' + '_ddlSal');
            var ctrlgender = document.getElementById('<%=ddlDriverGender1.ClientID%>' + '_ddlGender');

            var sal = ctrlsal.value;
            var gender = ctrlgender.value;
            var result = true;
            if (gender == 'M') {
                if (sal == 'Ms' || sal == 'Miss' || sal == 'Mdm' || sal == 'Mrs') {
                    result = false;
                }
            }
            else if (gender == 'F') {
                if (sal == 'Mr') {
                    result = false;
                }
            }

            if (result == false) {
                ctrlsal.style.backgroundColor = '#fcc';
                ctrlsal.style.border = 'Solid 1px #f00';
            }
            else {
                ctrlsal.style.backgroundColor = '';
                ctrlsal.style.border = '';
            }
            arguments.IsValid = result;
        }

        var hookAVal = false;
        function HookDriverValidation1() {
            if (hookAVal == false) {
                prefix = "<%=ddlDriverSalutation1.ClientID%>";
                var ddlSal = prefix + "_ddlSal";
                prefix = "<%=ddlDriverGender1.ClientID%>";
                var ddlGender = prefix + "_ddlGender";
                var valCtrl = "<%=csvDriverSalGender1.ClientID%>";
                ValidatorHookupControlID(ddlSal, document.getElementById(valCtrl));
                ValidatorHookupControlID(ddlGender, document.getElementById(valCtrl));
                hookAVal = true;
            }
        }

        function CheckDriverSalGenderValid2(source, arguments) {
            var ctrlsal = document.getElementById('<%=ddlDriverSalutation2.ClientID%>' + '_ddlSal');
            var ctrlgender = document.getElementById('<%=ddlDriverGender2.ClientID%>' + '_ddlGender');

            var sal = ctrlsal.value;
            var gender = ctrlgender.value;
            var result = true;
            if (gender == 'M') {
                if (sal == 'Ms' || sal == 'Miss' || sal == 'Mdm' || sal == 'Mrs') {
                    result = false;
                }
            }
            else if (gender == 'F') {
                if (sal == 'Mr') {
                    result = false;
                }
            }

            if (result == false) {
                ctrlsal.style.backgroundColor = '#fcc';
                ctrlsal.style.border = 'Solid 1px #f00';
            }
            else {
                ctrlsal.style.backgroundColor = '';
                ctrlsal.style.border = '';
            }
            arguments.IsValid = result;
        }

        var hookAVal = false;
        function HookDriverValidation2() {
            if (hookAVal == false) {
                prefix = "<%=ddlDriverSalutation2.ClientID%>";
                var ddlSal = prefix + "_ddlSal";
                prefix = "<%=ddlDriverGender2.ClientID%>";
                var ddlGender = prefix + "_ddlGender";
                var valCtrl = "<%=csvDriverSalGender2.ClientID%>";
                ValidatorHookupControlID(ddlSal, document.getElementById(valCtrl));
                ValidatorHookupControlID(ddlGender, document.getElementById(valCtrl));
                hookAVal = true;
            }
        }

        function CheckDriverSalGenderValid3(source, arguments) {
            var ctrlsal = document.getElementById('<%=ddlDriverSalutation3.ClientID%>' + '_ddlSal');
            var ctrlgender = document.getElementById('<%=ddlDriverGender3.ClientID%>' + '_ddlGender');

            var sal = ctrlsal.value;
            var gender = ctrlgender.value;
            var result = true;
            if (gender == 'M') {
                if (sal == 'Ms' || sal == 'Miss' || sal == 'Mdm' || sal == 'Mrs') {
                    result = false;
                }
            }
            else if (gender == 'F') {
                if (sal == 'Mr') {
                    result = false;
                }
            }

            if (result == false) {
                ctrlsal.style.backgroundColor = '#fcc';
                ctrlsal.style.border = 'Solid 1px #f00';
            }
            else {
                ctrlsal.style.backgroundColor = '';
                ctrlsal.style.border = '';
            }
            arguments.IsValid = result;
        }

        var hookAVal = false;
        function HookDriverValidation3() {
            if (hookAVal == false) {
                prefix = "<%=ddlDriverSalutation3.ClientID%>";
                var ddlSal = prefix + "_ddlSal";
                prefix = "<%=ddlDriverGender3.ClientID%>";
                var ddlGender = prefix + "_ddlGender";
                var valCtrl = "<%=csvDriverSalGender3.ClientID%>";
                ValidatorHookupControlID(ddlSal, document.getElementById(valCtrl));
                ValidatorHookupControlID(ddlGender, document.getElementById(valCtrl));
                hookAVal = true;
            }
        }

        function CheckDriverSalGenderValid4(source, arguments) {
            var ctrlsal = document.getElementById('<%=ddlDriverSalutation4.ClientID%>' + '_ddlSal');
            var ctrlgender = document.getElementById('<%=ddlDriverGender4.ClientID%>' + '_ddlGender');

            var sal = ctrlsal.value;
            var gender = ctrlgender.value;
            var result = true;
            if (gender == 'M') {
                if (sal == 'Ms' || sal == 'Miss' || sal == 'Mdm' || sal == 'Mrs') {
                    result = false;
                }
            }
            else if (gender == 'F') {
                if (sal == 'Mr') {
                    result = false;
                }
            }

            if (result == false) {
                ctrlsal.style.backgroundColor = '#fcc';
                ctrlsal.style.border = 'Solid 1px #f00';
            }
            else {
                ctrlsal.style.backgroundColor = '';
                ctrlsal.style.border = '';
            }
            arguments.IsValid = result;
        }

        var hookAVal = false;
        function HookDriverValidation4() {
            if (hookAVal == false) {
                prefix = "<%=ddlDriverSalutation4.ClientID%>";
                var ddlSal = prefix + "_ddlSal";
                prefix = "<%=ddlDriverGender4.ClientID%>";
                var ddlGender = prefix + "_ddlGender";
                var valCtrl = "<%=csvDriverSalGender4.ClientID%>";
                ValidatorHookupControlID(ddlSal, document.getElementById(valCtrl));
                ValidatorHookupControlID(ddlGender, document.getElementById(valCtrl));
                hookAVal = true;
            }
        }

        function CheckDriverSalGenderValid5(source, arguments) {
            var ctrlsal = document.getElementById('<%=ddlDriverSalutation5.ClientID%>' + '_ddlSal');
            var ctrlgender = document.getElementById('<%=ddlDriverGender5.ClientID%>' + '_ddlGender');

            var sal = ctrlsal.value;
            var gender = ctrlgender.value;
            var result = true;
            if (gender == 'M') {
                if (sal == 'Ms' || sal == 'Miss' || sal == 'Mdm' || sal == 'Mrs') {
                    result = false;
                }
            }
            else if (gender == 'F') {
                if (sal == 'Mr') {
                    result = false;
                }
            }

            if (result == false) {
                ctrlsal.style.backgroundColor = '#fcc';
                ctrlsal.style.border = 'Solid 1px #f00';
            }
            else {
                ctrlsal.style.backgroundColor = '';
                ctrlsal.style.border = '';
            }
            arguments.IsValid = result;
        }

        var hookAVal = false;
        function HookDriverValidation5() {
            if (hookAVal == false) {
                prefix = "<%=ddlDriverSalutation5.ClientID%>";
                var ddlSal = prefix + "_ddlSal";
                prefix = "<%=ddlDriverGender5.ClientID%>";
                var ddlGender = prefix + "_ddlGender";
                var valCtrl = "<%=csvDriverSalGender5.ClientID%>";
                ValidatorHookupControlID(ddlSal, document.getElementById(valCtrl));
                ValidatorHookupControlID(ddlGender, document.getElementById(valCtrl));
                hookAVal = true;
            }
        }


        function CheckAll() {
            HookDriverValidation1();
            HookDriverValidation2();
            HookDriverValidation3();
            HookDriverValidation4();
            HookDriverValidation5();
        }

        function showhide(el) {

            el = document.getElementById(el);
            el.style.display = (el.style.display == "none") ? "block" : "none";

        }


        window.onload = function() {
            //showhide('divParticularsofVechicle');
            //showhide('divGeneralQuestions');
            showhide('divExistingInsurer');
            showhide('divDermeritPoints');
            showhide('divPhysicalimpairment');
            showhide('divInsuranceterminated');
            showhide('divHirePurchase');
            showhide('divNCDProtection');
            showhide('divPremiumRates');
            //showhide('divPaymentMode');
            //showhide('divDeclaration');
            //showhide('divQuoteSummery');
            //EnableDisableDriverValidations();
            ShowInsurerStatus();
            onloading();
        }

        function onloading() {

            if (document.getElementById('<%=rdoYesHirePurchase.ClientID%>').checked == true) {
                ShowHideDiv('divHirePurchase', true);
                ValHirePurchase(true);
            }
            else if (document.getElementById('<%=rdoNoHirePurchase.ClientID%>').checked == true) {
                ShowHideDiv('divHirePurchase', false);
                ValHirePurchase(false);
            }


            else { ShowHideDiv('divHirePurchase', false); }

            //            if (document.getElementById('<=rdoYesExistingInsurer.ClientID>').checked == true) {
            //                ShowHideDiv('divExistingInsurer', true);
            //                ValExistingInsurer(true);
            //            }
            //            else if (document.getElementById('<=rdoNoExistingInsurer.ClientID>').checked == true) {
            //                ShowHideDiv('divExistingInsurer', false);
            //                ValExistingInsurer(false);
            //            }
            //            else { ShowHideDiv('divExistingInsurer', false); }

            if (document.getElementById('<%=rdoYesDermeritPoints.ClientID%>').checked == true) {
                ShowHideDiv('divDermeritPoints', true);
                ValDermeritPoints(true);
            }
            else if (document.getElementById('<%=rdoNoDermeritPoints.ClientID%>').checked == true) {
                ShowHideDiv('divDermeritPoints', false);
                ValDermeritPoints(false);
            }
            else { ShowHideDiv('divDermeritPoints', false); }

            if (document.getElementById('<%=rdoYesInsuranceterminated.ClientID%>').checked == true) {
                ShowHideDiv('divInsuranceterminated', true);
                ValInsuranceterminated(true);
            }
            else if (document.getElementById('<%=rdoNoInsuranceterminated.ClientID%>').checked == true) {
                ShowHideDiv('divInsuranceterminated', false);
                ValInsuranceterminated(false);
            }
            else { ShowHideDiv('divInsuranceterminated', false); }

            if (document.getElementById('<%=rdoYesPhysicalimpairment.ClientID%>').checked == true) {
                ShowHideDiv('divPhysicalimpairment', true);
                ValPhysicalimpairment(true);
            }
            else if (document.getElementById('<%=rdoNoPhysicalimpairment.ClientID%>').checked == true) {
                ShowHideDiv('divPhysicalimpairment', false);
                ValPhysicalimpairment(false);
            }
            else { ShowHideDiv('divPhysicalimpairment', false); }

            if (document.getElementById('<%=rdoYesModifiedVehicle.ClientID%>').checked == true) {
                //ShowHideDiv('divModifiedVehicle', true);
                ValModifiedVehicle(true);
            }
            else if (document.getElementById('<%=rdoNoModifiedVehicle.ClientID%>').checked == true) {
                //ShowHideDiv('divModifiedVehicle', false);
                ValModifiedVehicle(false);
            }
            //else { ShowHideDiv('divModifiedVehicle', false); }

            if (document.getElementById('<%=chkAgreed.ClientID%>').checked == true) {
                //ShowHideDiv('divPaymentMode', true);

                var ncdvalue = document.getElementById('<%=inputCurrentNCD.ClientID%>');
                var lblClaim = document.getElementById("<%=inputClaim.ClientID%>");

                if (ncdvalue.value == '50' && lblClaim.value == 'No') {
                    ShowHideDiv('divNCDProtection', true);

                    if (document.getElementById('<%=rdoYes.ClientID%>').checked == true)
                        ShowHideDiv('divPremiumRates', true);
                    else
                        ShowHideDiv('divPremiumRates', false);

                }
                else
                    ShowHideDiv('divNCDProtection', false);

            }
            else {
                //ShowHideDiv('divPaymentMode', false);

            }
            //CheckOptionValidationCss();
        }

        function ShowDiv() {
            ShowHideDiv('divParticularsofVechicle', true);
            ShowHideDiv('divGeneralQuestions', true);
            onloading();
        }

        function restrictToNumbers(e) {
            if ([e.keyCode || e.which] == 8 || [e.keyCode || e.which] == 37 || [e.keyCode || e.which] == 9 || [e.keyCode || e.which] == 39) //this is to allow backspace
                return true;

            if ([e.keyCode || e.which] < 48 || [e.keyCode || e.which] > 57)
                e.preventDefault ? e.preventDefault() : e.returnValue = false;
        }

        function requestByPostCode() {
            try {
                var _pcode = document.getElementById('<%=txtPostCode.ClientID%>').value;
                if (_pcode.length != 6) {
                    alert('Postal code length must be 6 numbers value.');
                    document.getElementById('<%=txtAddress.ClientID%>').value = '';
                    document.getElementById('<%=ibtPostCode.ClientID%>').isdisabled = true;
                    return false;
                }
                else {
                    document.getElementById('<%=txtAddress.ClientID%>').value = '';
                    document.getElementById('<%=ibtPostCode.ClientID%>').isdisabled = false;
                    //document.getElementById('<%=ibtPostCode.ClientID%>').isdisabled = false;
                }
            }
            catch (e) {
                alert(e.toString());
            }
        }


        function set_data(json) {
            try {
                var srcTable = $("#divAddress").empty();
                var txtAddress = document.getElementById('<%=txtAddress.ClientID%>');
                if (json == null) {
                    $("<table><tr><td>No address found!</td></tr></table>").appendTo(srcTable);
                    alert("No address found!");
                    document.getElementById('<%=txtPostCode.ClientID%>').value = "";
                    txtAddress.value = "No Address found.";
                    return;
                }
                if (json.length == 0) {
                    $("<table><tr><td>No address found!</td></tr></table>").appendTo(srcTable);
                    alert("No address found!");
                    document.getElementById('<%=txtPostCode.ClientID%>').value = "";
                    txtAddress.value = "No Address found.";
                    return;
                }

                var tbl = $("<table width='50%'>");

                var tbody = $("<tbody>");
                var no = 1;
                for (var i = 0; i < json.length; i++) {
                    var trow = $("<tr>"), rec = json[i];
                    if (rec.t != null) {

                        var ctn = rec.t + "<br>" + rec.a;

                        //$("<td>").text(no).data("col", 1).appendTo(trow);
                        $("<td>").html(ctn).data("col", 2).appendTo(trow);
                        if (i == 0) {
                            txtAddress.value = rec.t + "\n" + rec.a;
                        }
                        else {
                            txtAddress.value += "\n\n" + rec.t + "\n" + rec.a;
                        }
                        no++;
                    }
                    trow.appendTo(tbody);
                }
                tbody.appendTo(tbl);
                //alert(srcTable);
                tbl.appendTo(srcTable);
            }
            catch (e) {
                alert(e.toString());
            }
        }

        function PostCodeChange() {
            document.getElementById('divAddress').innerHTML = "Your postcode changed.";
            document.getElementById('divAddress').style.display = 'none';
            document.getElementById('<%=txtAddress.ClientID%>').innerHTML = "Your postcode changed.";
            return true;
            //document.getElementById("<=btnPostCode.ClientID>").disabled = false;
        }
    </script>

    <script type="text/javascript">
        function SubmitConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('proposal')) {
                _retVal = confirm('By pressing the submit button, you authorise CompareXpress to send your personal information to the partipating merchant of your choice. You therefore exempt CompareXpress from any liability relating to the sharing of this information with our participating merchant.');
            }
            else {
                ShowDiv();
            }
            return _retVal;
        }
        IncreaseProgress(100);
        HideLoading();
    </script>

    <script src="../../includes/carinsurance/etiqa.proposalform.js" type="text/javascript"></script>

</asp:Content>
